package com.meilai.project.controller.web.report.vo;

import com.meilai.project.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

/**
 * @Author yxg
 * @Date 2023/2/23 23:08
 */
@Data
@ApiModel
public class WeekDetailCustomerExt2 {
    @ApiModelProperty("开始日期")
    private LocalDate beginDate;
    private String beginDateStr;
    @ApiModelProperty("结束日期")
    private LocalDate endDate;
    private String endDateStr;
    @ApiModelProperty("客户ID")
    private Long customerId;
    @ApiModelProperty("客户名称")
    private String customerName;
    @ApiModelProperty("占用数量")
    private Integer occupyCount;

    public String getDateRangeDesc() {
        return DateUtil.formatDate(beginDate) + "-" + DateUtil.formatDate(endDate);
    }
}
